<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
    <h3>欢迎来到登录页面</h3>

    <p style="color:red;" th:text="${session.msg}"></p>

    <form action="/login" method="post">
        用户名：<input type="text" name="username"> <br>
        密码：<input type="password" name="password"> <br>
        <input type="hidden" name="from" value="${param.from}">
        <button type="submit">登录</button>
    </form>
</body>
</html>